<template>
    <div class="login">
        <!-- <button class="btn" @click="login()">登陆</button> -->
        <el-button class="btn" type="primary" @click="login()">登陆</el-button>
    </div>

</template>

<script lang="ts" setup>
import router from '@/router'
const login = () => {
    router.push('/home')
    console.log('登陆');
}

</script>
<style lang="scss" scoped>
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
.login{
    width: 100vw;
    height: 100vh;
    position: fixed;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
}
.btn{
    width: 100px;
    height: 50px;
    cursor: pointer;
}
</style>